var page = require('webpage').create(),
    system = require('system'),
    t, address;

if (system.args.length === 1) {
    console.log('Usage: loadspeed.js <some URL>');
    phantom.exit();
}
url = system.args[1];
t = Date.now();

page.open(url, function (status) {
    var document = page.evaluate(function () {
        return document;
    });

    console.log(JSON.stringify(document));
    phantom.exit();
});